package cn.dt70.service;

import cn.dt70.pojo.AqbReward;
import cn.dt70.utils.PageSupport;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

public interface AqbRewardService {

    //用户获得奖励金
    boolean getReward(AqbReward aqbReward)throws Exception;
    //修改奖励金的状态
    boolean updateStatus(Integer rewordId)throws Exception;

    //根据奖励金的类型获得所有的的奖励金
    Integer sumReward(Integer userId, Integer rewardType) throws Exception;

    //查询奖励金流水
    List<AqbReward> getAllReward(Integer userId,
                                 Integer rewardType,
                                 Integer startDay,
                                 PageSupport ps) throws Exception;
}
